package com.siashan.unipay4j.ali.redpack;

import com.siashan.unipay4j.core.IBaseEnum;
import com.siashan.unipay4j.core.redpack.RedpackState;

/**
 * 微信红包发放状态
 *
 * @author  siashan
 * @version V1.0.1
 **/
public enum AliRedpackState implements IBaseEnum<String> {
    /**
     * 发放中
     */
    SENDING("SENDING", "发放中",RedpackState.SENDING),
    /**
     * 已发放待领取
     */
    SENT("SENT", "已发放待领取",RedpackState.SENT),
    /**
     * 发放失败
     */
    FAILED("FAILED", "发放失败",RedpackState.FAILED),
    /**
     * 已领取
     */
    RECEIVED ("RECEIVED", "已领取",RedpackState.RECEIVED),
    /**
     * 退款中
     */
    RFUND_ING ("RFUND_ING", "退款中",RedpackState.RFUND_ING),
    /**
     * 已退款
     */
    REFUND ("REFUND", "已退款",RedpackState.REFUND),
    ;
    private String value;
    private String desp;
    private  RedpackState redpackState;

    AliRedpackState(String value, String desp, RedpackState redpackState) {
        this.value = value;
        this.desp = desp;
        this.redpackState = redpackState;
    }

    @Override
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }


    public RedpackState getRedpackState() {
        return redpackState;
    }

    public void setRedpackState(RedpackState redpackState) {
        this.redpackState = redpackState;
    }
}
